import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { LoginService } from '../../providers/rest/login-service';

/**
 * Generated class for the MorePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
	selector: 'page-more',
	templateUrl: 'more.html',
})
export class MorePage {
	constructor(public navCtrl: NavController, public navParams: NavParams, public loginService: LoginService) {}

	infoStr: string;

	ionViewDidLoad() {
		console.log('ionViewDidLoad MorePage');
	}

	testUrl() {
		this.loginService.test(data => {
			console.log(data);
			this.infoStr = data['resultMsg'];
		});
	}
}
